package part1.language_basis.day04.day04test;

public class ForDemo {
    public static void main(String[] args) {

        /**for循环：输出5次"行动是成功的阶梯"*/
        for (int times=0; times<5; times++){
            System.out.println("行动是成功的阶梯");
        }

        /**输出9的乘法表*/
        for (int num=1; num<=9; num++){
            System.out.println(num+"*9="+num*9);
        }
        for (int num=1; num<=9; num+=2){
            System.out.println(num+"*9="+num*9);
        }
        for (int num=9; num>=1; num--){
            System.out.println(num+"*9="+num*9);
        }







        /**for循环：输出5次"行动是成功的阶梯"*/
        for (int times=0; times<5; times++){
            System.out.println("行动是成功的阶梯");
        }

        /**输出9的乘法表*/
        for (int num=1; num<=9; num++){
            System.out.println(num+"*9="+num*9);
        }
        for (int num=1; num<=9; num+=2){
            System.out.println(num+"*9="+num*9);
        }
        for (int num=9; num>=1; num--){
            System.out.println(num+"*9="+num*9);
        }
    }
}
